package com.hzf.wxplatform.admin.runnable;

import org.apache.activemq.util.TimeUtils;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TimerTask {

    @Scheduled(cron = "0 0 0/2 * * ? ")//每隔5秒隔行一次
    public void test2()
    {
        System.out.println("job2 开始执行");
    }
}
